<template>
	<view class="">
		<view :style="{height:statusBarHeight+'px'}" style="width: 100%;"></view>
		<view style="width:750rpx;height: 100%;">
			<citySelect @back_city="back_city"></citySelect>
		</view>

	</view>
</template>

<script>
	import citySelect from '@/components/selectCity/linzq-citySelect/linzq-citySelect.vue';
	export default {
		components: {
			citySelect,
		},
		computed: {},
		data() {
			return {
				statusBarHeight: this.statusBarHeight, //状态栏高度，在main.js里
				region: '请选择...', //地区 
			}
		},
		onLoad(e) {
			console.log(e.type);
		},  
		
		methods: {
			oncity() {
				var that = this 
			},
			back_city(e) { 
				console.log(e);
				if (e !== 'no') {
					this.region = e.cityName 
				} else { 
				}
			}
		}
	};
</script>

<style scoped>
	.height {
		height: var(--status-bar-height);
	}
</style>
